package br.unicamp.ic.lis.dbvapi.physicalversion;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Table;

import br.unicamp.ic.lis.dbvapi.domain.AbstractPhysicalVersion;

@Entity
@Table(name = "FilePhysicalVersion")
@DiscriminatorValue("FilePhysicalVersion")
public class FilePhysicalVersion extends AbstractPhysicalVersion<String> {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1662151442060036808L;

	private String filePath;

	public FilePhysicalVersion(String filePath) {
		this.filePath = filePath;
	}

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	@Override
	public String toString() {
		return "FilePhysicalVersion [id=" + id + ", filePath=" + filePath + "]";
	}

	@Override
	public String getValue() {
		return filePath;
	}
}
